﻿<Window x:Class="CPPEI.ShareScreen.App.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <ListBox Name="_ctlListClient" Grid.Row="0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path=IP}"/>
                        <TextBlock Text=":"/>
                        <TextBlock Text="{Binding Path=Port}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Content="connect to server" Name="_ctlBtnConnectToServer" HorizontalAlignment="Left" Margin="5" Click="_ctlBtnConnectToServer_Click"/>
            <Button Content="refresh" Name="_ctlRefreshClientList" HorizontalAlignment="Left" Margin="5" Click="_ctlRefreshClientList_Click"/>
            <Button Content="Connect to client" Name="_ctlConnectToClient" HorizontalAlignment="Left" Margin="5" Click="_ctlConnectToClient_Click"/>
            <Button Content="print screen" Name="_ctlPrintScreen" HorizontalAlignment="Left" Margin="5" Click="_ctlPrintScreen_Click"/>
        </StackPanel>
    </Grid>
</Window>
